﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VkSample125;

public class FlatData
{
    public int DataByteCount { get; set; }

    public int VCount { get; set; }

    public float[] Data { get; set; }

    public void GenVertexData()
    {
        const float width = 3;
        const float height = 3;
        VCount = 6;
        DataByteCount = VCount * 5 * sizeof(float);
        Data =
        [ 
            width, height, 0, 1, 0,
            -width, height, 0, 0, 0,
            -width, -height, 0, 0, 1,
            width, -height, 0, 1, 1,
            width, height, 0, 1, 0,
            -width, -height, 0, 0, 1
        ];
    }
}
